<li<%= (user? && note.user?(user)) ? " class=\"user-note\"" : "" %>>
	<p class="meta">
		<%= icon "user.png", :alt => "Escrito por" %>
		<%= safe_link_to_user note.user %>
		<% if user? && note.editable?(user) %>
		 | <%= icon("attach.png") %> <%= link_to "Anexar documentos", :controller => "notes", :action => "edit", :subpage => "documents", :type => "note", :id => note.id %>
		 | <%= icon("pencil.png") %> <%= link_to "Editar", :controller => "notes", :action => "edit", :id => note.id %>
		<% end %>
		<% if user? && note.deletable?(user) %>
		 | <%= icon("delete.png") %> <%= link_to "Deletar", :controller => "notes", :action => "delete", :id => note.id %>
		<% end %>
	</p>
	<h4><%= note.title %></h4>
	<%= image_tag(note.user.image.location, :class => "thumb") if note.user.image %>
	<p class="body"><%= note.body %></p>
	<%= render :partial => "documents/list", :locals => {:no_message => true, :documents => note.documents} %>
	<p class="clear">&nbsp;</p>
</li>